import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import Latest from '@/components/Latest'
import History from '@/components/History'
import Frequency from '@/components/Frequency'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      redirect:'/latest',
      children:[
        {
          path: '/latest',
          name: 'Latest',
          component: Latest
        },
        {
          path: '/history',
          name: 'History',
          component: History
        },
        {
          path: '/frequency',
          name: 'Frequency',
          component: Frequency
        }
      ]
    }
  ]
})
